﻿@using VaccineEbook.Helpers;

@model VaccineEbook.Models.CustomPageList<VaccineEbook.Models.DBEntity.User>
@{
    ViewBag.Title = "Index";
}

<h2>User</h2>

<nav>
    @Html._PageListPager(Request.QueryString, Model, VaccineEbook.Models.Constant.PAGE_LIST_OPTION, null)
</nav>

<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <th>Username</th>
            <th>Created Date</th>
        </tr>
    </thead>
    <tbody>
        @if(Model.ListCustom != null)
        {
            foreach (var item in Model.ListCustom) 
            { 
                <tr>
                    <td>@item.Username</td>
                    <td>@item.LastModifined</td>
                </tr>
            }
        }
    </tbody>
</table>

<nav>
    @Html._PageListPager(Request.QueryString, Model, VaccineEbook.Models.Constant.PAGE_LIST_OPTION, null)
</nav>